import { request } from 'umi';

export let getMailList=(data:any)=>{
    let {from,to,subject}=data
    // {page:1,pageSize:12,from,to}
    return request("api/smtp",{params:{page:1,pageSize:12,from,to,subject}})
}

export let getSearchList=(data:any)=>{
    let {type,keyword,count}=data
    // {page:1,pageSize:12,from,to}
    return request("api/search",{params:{page:1,pageSize:12,type,keyword,count}})
}


export let getFileList=(data:any)=>{
    // let {type,keyword,count}=data
    // {page:1,pageSize:12,from,to}
    return request("api/file",{params:{page:1,pageSize:12}})
}